home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-04 / tool_inc.zip / MARKTIME.INC < prev    next >
Text File  |  1989-06-02  |  711b  |  29 lines

  1.  
  2. (*
  3.  * Copyright 1987, 1989 Samuel H. Smith;  All rights reserved
  4.  *
  5.  * This is a component of the ProDoor System.
  6.  * Do not distribute modified versions without my permission.
  7.  * Do not remove or alter this notice or any other copyright notice.
  8.  * If you use this in your own program you must distribute source code.
  9.  * Do not use any of this in a commercial product.
  10.  *
  11.  *)
  12.  
  13. procedure mark_time(var long: longint);
  14.    {report time in clock ticks since midnight}
  15. var
  16.    words:   record
  17.                l,h: word;
  18.             end   absolute long;
  19.    reg:     registers;
  20.    
  21. begin
  22.    reg.ah := 0;  {get time of day}
  23.    intr($1a,reg);
  24.    words.l := reg.dx;
  25.    words.h := reg.cx;
  26. end;
  27.  
  28.  
  29.